package DP.command.common;

import DP.command.common.comm.Command;
import DP.command.common.comm.impl.ConcreteCommand1;
import DP.command.common.invoker.Invoker;
import DP.command.common.receiver.impl.ConcreteReceiver1;
import DP.command.common.receiver.Receiver;

/**
 * @author msi
 * 场景类
 */
public class Client {
    public static void main(String[] args) {
        Invoker invoker=new Invoker();
        Receiver receiver=new ConcreteReceiver1();
        Command command=new ConcreteCommand1(receiver);
        invoker.setCommand(command);
        invoker.action();
    }
}
